<%inherit  file="/base.html" />

<%def name="linkto(obj, controller)">
  ${h.link_to(obj.name, h.url(controller=controller, action='detail', id=obj.id))}
</%def>

<%def name="nested()">
<div class="xtreg-nested">
  ${caller.body()}
</div>
</%def>

${linkto(c.task.story.iteration.project, 'project')}
<%call expr="nested()">
  ${linkto(c.task.story.iteration, 'iteration')}
  <%call expr="nested()">
    ${linkto(c.task.story, 'story')}
    <%call expr="nested()">
      ${linkto(c.task, 'task')}
      <p>
        ${h.link_to('See this task in XPlanner', h.url_for('xplanner.task', oid=c.task.id))}
      </p>
    </%call>
  </%call>
</%call>
